const state = {
  isLogin: false,
  p_id: '',
  user_agent_level: ''
}

const mutations = {
  TOGGLE_USER_ISLOGIN(state, status) {
    state.isLogin = status
  },
  TOGGLE_USER_ID(state, status) {
    state.p_id = status
  },
  TOGGLE_LEVEL(state, status) {
    state.user_agent_level = status
  }
}

const actions = {
  TOGGLE_USER_ISLOGIN({ commit }, status) {
    commit('TOGGLE_USER_ISLOGIN', status)
  },
  TOGGLE_USER_ID({ commit }, status) {
    commit('TOGGLE_USER_ID', status)
  },
  TOGGLE_LEVEL({ commit }, status) {
    commit('TOGGLE_LEVEL', status)
  }
}

export default {
  state,
  mutations,
  actions
}
